package bean;

import java.util.Date;

public class attendance {
    private int attid;
    private int uid;
    private Date datetime;
    private String rname;
    private int day;
    private int attendanceNum;


    public attendance(){}

    public attendance(int attid, int uid, Date datetime,int day,int attendanceNum) {
        this.attid = attid;
        this.uid = uid;
        this.datetime = datetime;
        this.day = day;
        this.attendanceNum = attendanceNum;
    }

    public int getAttid() {
        return attid;
    }

    public void setAttid(int attid) {
        this.attid = attid;
    }

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    public Date getDatetime() {
        return datetime;
    }

    public void setDatetime(Date datetime) {
        this.datetime = datetime;
    }

    public String getRname() { return rname; }

    public void setRname(String rname) { this.rname = rname; }

    public int getDay() {
        return day;
    }

    public void setDay(int day) {
        this.day = day;
    }

    public int getAttendanceNum() {
        return attendanceNum;
    }

    public void setAttendanceNum(int attendanceNum) {
        this.attendanceNum = attendanceNum;
    }

    @Override
    public String toString() {
        return "attendance{" +
                "attid=" + attid +
                ", uid=" + uid +
                ", datetime=" + datetime +
                ", rname='" + rname + '\'' +
                ", day=" + day +
                ", attendanceNum=" + attendanceNum +
                '}';
    }
}
